package com.heima.car_platform;

public class Car {
    private String brand;
    private String model;
    private String year;

    public Car() {
    }

    public Car(String brand, String model, String year) {
        this.brand = brand;
        this.model = model;
        this.year = year;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }
    public void input(){
        System.out.println("Brand: " + brand+" Model: " + model+" Year: " + year + "花了不少钱收进来>_<");
    }
    public void output(){
        System.out.println("Brand: " + brand+" Model: " + model+" Year: " + year + "租完还回来了");
    }

}
